var RestLocalStorageUtils = function () {
    return this;
};
RestLocalStorageUtils.prototype = {
    constructor: RestLocalStorageUtils,
    get (name) {
        return JSON.parse(localStorage.getItem(name));
    },
    set (name, val) {
        localStorage.setItem(name, JSON.stringify(val));
    }
};

window.QiLocalStorageUtils = new RestLocalStorageUtils();